#include<bits/stdc++.h>
using namespace std;

int n,m,l,v,rs1=0,rs2=0;
int a[1000005][3],b[1000005];
vector<int> c[1000005];
set<int> s1,s2;

void dfs(int k,int s){
	if(k==n){
		if(s2.size==n){
			rs2=max
		}
	}
}

int main(){
	freopen("detect.in","r",stdin);
	freopen("detect.out","w",stdout);

	return 0;
}
